package cloud.study.eurekafeignclient.api;

import cloud.study.eurekafeignclient.config.FeignConfig;
import cloud.study.eurekafeignclient.histrix.HiHstrix;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import po.User;

@FeignClient(value = "eureka-client",configuration = FeignConfig.class,fallback = HiHstrix.class)
public interface EurekaClientFeign {
    @RequestMapping("/hi")
    String hi(@RequestParam("name") String name);
    @RequestMapping("/testPo")
    public String testPo(User user);
}
